<?php
return array(

	'searchColumns' => array(
		'rate' => array('dropDownList',Yii::app()->enum->options('content.rate')),
		'selectTime' => array('dropDownList',Yii::app()->enum->options('selectTime')),
	),
	
	'dataColumns' => array(
		'id',
		'nickname',
		array(
			'name' => '商品',
			'value' => 'CHtml::value($data,"targetObject.title")',
			'htmlOptions' => array(
				'width' => '300px'
			),
		),
//		array(
//			'name' => 'content',
//			'htmlOptions' => array(
//				'width' => '400px'
//			),
//		),
		array(
			'name' => 'rate',
			'value' => 'Yii::app()->enum->lookUp("content.rate",$data->rate)',
		),
		'create_time',
		array(
			'header' => '操作',
			'class' => 'ButtonColumn',
			'template' => '{view} {delete}',
		),
	),
	'operates' => false,
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>